﻿using System.Data.SQLite;
using NUnit.Framework;

namespace OneWorks.Test.Other.TestDataBase.SQLite
{
    public class Simple
    {
        [Test]
        public void CreateDataBase()
        {
            using (SQLiteConnection connection = new SQLiteConnection(@"Data Source=c:\DataBase.db;Version=3;"))
            {
                connection.Open();
                SQLiteCommand command = new SQLiteCommand(connection)
                {CommandText = "create table Logs ( logid int)"};
                command.ExecuteNonQuery();    
                connection.Close();
            }                       
        }
    }
}
